package com.supreme.commonmybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.supreme.commonmybatis.entity.primary.MBGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GoodsMapper extends BaseMapper<MBGoods> {

    int deductGoodsStockAmount(@Param("goodsId") Long goodsId, @Param("version") Integer version, @Param("deductStock") Integer deductStock);
}
